<?php
/*
* Author: Nguyen Hai Nam
* Module: Admin
* Desc	: Introduce pick.vn and sidle pic
* Date	: 12/12/2011
*/
class LogoutModule extends Pick_Core_Module{
	
	public $authentication = 0;
	
	function LogoutModule(){
		
		parent::Pick_Core_Module();
		$this->theme = "admin";
		
	}
	public function getContent(){
		
		$_SESSION['userId'] = 0;
		$_SESSION['userName'] = '';
		$_SESSION['userType'] = 0;
		
		if(isset($_SESSION['adminId'])) {
			$_SESSION['userId'] = $_SESSION['adminId'];
			$_SESSION['adminId'] = '';	
		}
		redirect(base_url()."/login");
		
	}
}